package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.system.domain.Store;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Store.class, reverseConvertGenerate = false)
public class StoreBo extends BaseEntity {

    /**
     * 店铺ID
     */
    @NotNull(message = "店铺ID不能为空", groups = { EditGroup.class })
    private Long storeId;

    /**
     * 店铺名称
     */
    @NotBlank(message = "店铺名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeName;

    /**
     * 备注
     */
    private String remark;

}
